package com.example.service;

import com.example.entity.Lecture;
import com.example.entity.bo.CourseStudentResultBO;

import java.util.Date;
import java.util.List;

public interface LectureService {
    List<Lecture> getByExampleWithLimit(String teacherName, String courseName, Date beginDate, Date endDate, Integer page, Integer limit);

    long getCountByExample(String teacherName, String courseName, Date beginDate, Date endDate);

    void add(Lecture lecture);

    Lecture getById(Integer id);

    void updateById(Lecture lecture);

    void removeById(Integer id);

    /**
     * 获取在date之后最近上课的n条数据
     *
     * @param date
     * @param n
     */
    List<Lecture> getOrderByDateWithLimit(Date date, int n);

    List<CourseStudentResultBO> getCourseStudentResultsByExampleWithLimit(String teacherId, String courseId, String studentId, Integer page, Integer limit);
}
